package com.xbongbong.paas.pojo.workflow.settings.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @date 2021/06/01 13:53
 */
@Getter
@Setter
@ToString
public class WorkflowArchiveDTO extends BaseDTO {

    private static final long serialVersionUID = 145551436184562103L;

    @NotNull(message = "{dto.msg.workflowId.NotNull}")
    private Long workflowId;

    @NotEmpty(message = "{dto.msg.WorkflowVersionListDTO.version.NotEmpty}")
    private String version;

    @NotNull(message = "{dto.msg.WorkflowVersionListDTO.archive.NotNull}")
    private Integer archive;

}
